1 package jrre;
2
3 import java.util.*;
4
5 public class NativeMethodArea {
6
7 private static HashMap hashMap = new HashMap();
8 private static jrre.gui.NativeMethodAreaGui methodAreaGui;
9 private int classCount=0;
10
11 public NativeMethodArea(){
12 super();
13
14 if(JRRE.guiOn()){
15 methodAreaGui = new jrre.gui.NativeMethodAreaGui();
16 }
17 }
18
19 public static void addMethod(String methodToAdd){
20
21 if(JRRE.guiOn() && !containsMethod(methodToAdd)){
22 hashMap.put(methodToAdd,methodToAdd);
23 methodAreaGui.addClass(methodToAdd);
24 }
25 }
26
27 public static jrre.api.java.lang.Class getClass(String fullyQualifiedName){
28 return (jrre.api.java.lang.Class)hashMap.get(fullyQualifiedName);
29 }
30
31 public static boolean containsMethod(String fullyQualifiedName){
32 return hashMap.containsKey(fullyQualifiedName);
33 }
34
35
36 }
37
This page was automatically generated by Maven